package com.stylefeng.guns.modular.flagglory.service;

import com.stylefeng.guns.common.persistence.model.Department;
import com.baomidou.mybatisplus.service.IService;
import com.stylefeng.guns.core.exception.FrontException;
import com.stylefeng.guns.core.node.ZTreeNode;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * lg_部门表 服务类
 * </p>
 *
 * @author stylefeng123
 * @since 2018-01-31
 */
public interface IDepartmentService extends IService<Department> {
    List<ZTreeNode> tree();

    Department getUserDepartment(Integer userId);

    //查询单位内集体排名
    List<Map<String, Object>> selectDepartmentListById(Integer deptId) throws FrontException;

    //查询区域内集体排名
    List<Map<String, Object>> selectDepartmentList() throws FrontException;
}
